package org.itboys.product.entity;

import org.mongodb.morphia.annotations.Entity;
import org.mongodb.morphia.annotations.Id;

/**
 * 商品基本计数器表 数量走 inc 自增
 * @author 土豪章
 *
 */
@Entity(value = "ProductCount", noClassnameStored = true)
public class ProductCount {

	@Id
	private long productId;
	private long readCount = 0L; //浏览次数 可以不考虑
	private int soldCount = 0;//总销量
	private int stock = 0;//库存
	private int commentCount = 0;//总评价数
	private int goodComment = 0;//好评数
	private int middleComment = 0;//中评数
	private int badComment = 0;//差评数
	public long getReadCount() {
		return readCount;
	}
	public void setReadCount(long readCount) {
		this.readCount = readCount;
	}
	public int getSoldCount() {
		return soldCount;
	}
	public void setSoldCount(int soldCount) {
		this.soldCount = soldCount;
	}
	public int getStock() {
		return stock;
	}
	public void setStock(int stock) {
		this.stock = stock;
	}
	public int getCommentCount() {
		return commentCount;
	}
	public void setCommentCount(int commentCount) {
		this.commentCount = commentCount;
	}
	public int getGoodComment() {
		return goodComment;
	}
	public void setGoodComment(int goodComment) {
		this.goodComment = goodComment;
	}
	public int getMiddleComment() {
		return middleComment;
	}
	public void setMiddleComment(int middleComment) {
		this.middleComment = middleComment;
	}
	public int getBadComment() {
		return badComment;
	}
	public void setBadComment(int badComment) {
		this.badComment = badComment;
	}
	public long getProductId() {
		return productId;
	}
	public void setProductId(long productId) {
		this.productId = productId;
	}
	
}
